function createWebHashHistory(base){
    // base = location.host ? base || location.pathname + location.search : ''
    // if(!base.includes('#')) base += '#'
    //http://10.200.137.36:9099/BecomeAFullNumber#/add
    base = '/BecomeAFullNumber#'
    return createWebHistory(base)
}



function  createWebHistory(base) {
    let currentLocation = {
        value : createCurrentLocation(base)
    }
    // currentLocation = {value : '/BecomeAFullNumber' }
    //let historyState = history.state
    let historyState = {
        back: null,
        current: "/add",
        forward: null,
        position: 7,
        replaced: true,
        scroll: null,
    }

    const hashIndex = base.indexOf('#')
    let to = currentLocation.value
    const url = base.slice(hashIndex) + to
    console.log(url)
}


function createCurrentLocation(base){
    // let hash = location.hash
    //let pathname = location.pathname
    let hash = '#/add'
    let pathname = '/BecomeAFullNumber'
    const hashPos = base.indexOf('#')
    if(hashPos > -1){
        let slicePos = hash.includes(base.slice(hashPos))
        ? base.slice(hashPos).length
        : 1
      let pathFromHash = hash.slice(slicePos)
      if (pathFromHash[0] !== '/') pathFromHash = '/' + pathFromHash
      return pathname
    }
}

createWebHashHistory()